/**
 * 文章列表的列表数据
 */
import React from 'react'
import { Tooltip, Icon} from 'antd';
export default [
    {
        title:"文章标题",
        dataIndex:"title",
        key:"title"
    },
    {
        title:"文章栏目",
        dataIndex:"columnName",
        key:"articleColumn"
    },
    {
        title:"文章类型",
        dataIndex:"special",
        key:"special",
        render:(special)=>special === "Y" ? "专题文章" : "普通文章"
    },
    {
        title:"更新时间",
        dataIndex:"createTime",
        key:"createTime"
    },
    {
        title: <span>内部链接&nbsp;<Tooltip title="内部链接指的是隐藏了主域名的链接地址，您可以直接复制粘帖到站内的链接输入框，系统会自动帮您补全链接."><Icon type="question-circle" /></Tooltip></span>,
        key:"link",
        render:(link,record) => {
            return `/subject/${record.id}`;
        }
    },
    {
        title:"排序",
        dataIndex:"sort",
        key:"sortIndex"
    },
    {
        title:"发布",
        dataIndex:"publish",
        key:"publish",
        render:(value)=>{
            return value.toUpperCase() === 'Y' ? '是':"否"
        }
    }
]